package ar.com.vates.elementos;

public class Profesor {

	public void ponerNotas(Alumno a) {
		double[] v = new double[3];
		for (int i = 0; i < v.length; i++)
			v[i] = Math.random()*100;

		a.getA1().setNota(v[0]);
		a.getA2().setNota(v[1]);
		a.getA3().setNota(v[2]);
	}

	public double calcularMedia(Alumno a) {
		double media = (a.getA1().getNota() + a.getA2().getNota() + a.getA3().getNota()) / 3;
		return media;
	}
}
